home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / init.d / 01unsupported < prev    next >
Text File  |  2009-10-28  |  841b  |  42 lines

  1. #!/bin/sh
  2.  
  3. if [ -f /var/lib/partman/supported ]; then
  4.     exit 0
  5. fi
  6.  
  7. . /usr/share/debconf/confmodule
  8. . /lib/partman/lib/disk-label.sh
  9.  
  10. mkdir -p /var/lib/partman
  11. >/var/lib/partman/supported
  12.  
  13. default_label=$(default_disk_label)
  14.  
  15. case "$default_label" in
  16.     UNKNOWN)
  17.     db_input critical partman-partitioning/unknown_label
  18.     db_go || exit 10
  19.     db_get partman-partitioning/unknown_label
  20.     if [ "$RET" = false ]; then
  21.         db_reset partman-partitioning/unknown_label
  22.         exit 10
  23.     fi
  24.     db_reset partman-partitioning/unknown_label
  25.     exit 0
  26.     ;;
  27.     UNSUPPORTED)
  28.     db_input critical partman-partitioning/unsupported_label
  29.     db_go || exit 10
  30.     db_get partman-partitioning/unsupported_label
  31.     if [ "$RET" = false ]; then
  32.         db_reset partman-partitioning/unsupported_label
  33.         exit 10
  34.     fi
  35.     db_reset partman-partitioning/unsupported_label
  36.     exit 0
  37.     ;;
  38.     *)
  39.     exit 0
  40.     ;;
  41. esac
  42.